default: main.cpp.bin
	./main.cpp.bin

main.cpp.bin: main.cpp Constants.hpp DisplayManager.hpp DisplayManager.o ObjectManager.hpp ObjectManager.o Object.o
	g++ -g -O2 -W -Wall -o main.cpp.bin -L/usr/lib -Wl,-Bsymbolic-functions -lalleg-4.2.2 DisplayManager.o ObjectManager.o Object.o main.cpp

DisplayManager.o: Constants.hpp DisplayManager.hpp DisplayManager.cpp Object.hpp ObjectManager.hpp
	g++ -g -O2 -W -Wall -c DisplayManager.cpp

ObjectManager.o: Constants.hpp ObjectManager.hpp ObjectManager.cpp Object.hpp Vec2d.hpp
	g++ -g -O2 -W -Wall -c ObjectManager.cpp

Object.o: Object.hpp Object.cpp Vec2d.hpp
	g++ -g -O2 -W -Wall -c Object.cpp
